package com.campus_information_portal.entity;/**
 * @Author:20155887赵开兰
 * @Description:
 * @Date: Created in 2018/5/30 14:48
 */

import com.campus_information_portal.util.DateJsonType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;

/**
 * @program: campus_information_portal
 * @description: 成绩复查显示页面的联合成绩，课程，学生,申请复查表的类
 * @author: 20155887赵开兰
 * @create: 2018-05-30 14:48
 **/
public class MarkCheck {
    //申请编号
    private int applyRecheckid;
    // 学生Id
    //  private int stu_info_id;这样写拿不到，不能带下划线
    private int stuId;
    // 成绩ID
    private int markId;
    //申请日期
    @JsonSerialize(using = DateJsonType.class)
    private Date rescoreTime;
    //申请状态
    private int rescoreState;
    // 学生姓名
    private String stuName;
    // 课程
    private String courseName;
    // 成绩
    private int mark;

    public int getApplyRecheckid() {
        return applyRecheckid;
    }

    public void setApplyRecheckid(int applyRecheckid) {
        this.applyRecheckid = applyRecheckid;
    }

    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public int getMarkId() {
        return markId;
    }

    public void setMarkId(int markId) {
        this.markId = markId;
    }

    public Date getRescoreTime() {
        return rescoreTime;
    }

    public void setRescoreTime(Date rescoreTime) {
        this.rescoreTime = rescoreTime;
    }

    public int getRescoreState() {
        return rescoreState;
    }

    public void setRescoreState(int rescoreState) {
        this.rescoreState = rescoreState;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public int getMark() {
        return mark;
    }

    public void setMark(int mark) {
        this.mark = mark;
    }

    public MarkCheck() {
    }

    public MarkCheck(int applyRecheckid, int stuId, int markId, Date rescoreTime, int rescoreState,
                     String stuName, String courseName, int mark) {
        this.applyRecheckid = applyRecheckid;
        this.stuId = stuId;
        this.markId = markId;
        this.rescoreTime = rescoreTime;
        this.rescoreState = rescoreState;
        this.stuName = stuName;
        this.courseName = courseName;
        this.mark = mark;
    }

    @Override
    public String toString() {
        return "MarkCheck{" +
                "applyRecheckid=" + applyRecheckid +
                ", stuId=" + stuId +
                ", markId=" + markId +
                ", rescoreTime=" + rescoreTime +
                ", rescoreState=" + rescoreState +
                ", stuName='" + stuName + '\'' +
                ", courseName='" + courseName + '\'' +
                ", mark=" + mark +
                '}';
    }
}
